package cn.openea.perpartner.cms.web.service;

import com.baomidou.mybatisplus.extension.service.IService;
import cn.openea.perpartner.cms.web.dto.FavCommunityDto;
import cn.openea.perpartner.cms.web.dto.FavCustomerDto;
import cn.openea.perpartner.cms.web.entity.CmsFavorites;

import java.util.List;

/**
 * (CmsFavorites)表服务接口
 *
 * @author Weird077
 * @since 2022-08-25 10:06:53
 */
public interface ICmsFavoritesService extends IService<CmsFavorites> {
    List<FavCustomerDto> selectCustomerList(String userId,String searchStr);
    List<FavCommunityDto> selectCommunityList(String userId,String searchStr);
    boolean check(CmsFavorites favorites);
    boolean checkUnique(List<CmsFavorites> favoritesList);
    boolean deleteByLinkId(Long linkId, String userId);
    boolean save(List<CmsFavorites> favoritesList);
}

